package cn.knightzz.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author knightzz
 * @date 2021/4/9 12:36
 */
public class PasswordEncodeUtil {

    private static PasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
    public static String encode(String code){
        return passwordEncoder.encode(code);
    }
}
